<#if pagination.totalCount gt pagination.pageSize >
<div class="pagination">
<#if pagination.totalCount gt pagination.pageSize>
	<#if  pagination.pageNo != 1>
		<a href="javascript: $.pageSkip(1);" class="firstPage">&nbsp;</a>
	<#else>
		<span class="firstPage">&nbsp;</span>	
	</#if>
	
	<#if pagination.pageNo !=  pagination.prePage>
		<a href="javascript: $.pageSkip(${pagination.prePage});" class="previousPage">&nbsp;</a>
	<#else>
		<span class="previousPage">&nbsp;</span>	
	</#if>	
	<#if pagination.totalPage gt 5 && pagination.pageNo gt 3 >
		<a href="javascript: $.pageSkip(1);">1...</a>
	</#if>
	<#if pagination.totalPage gt 5 && pagination.pageNo gt 3 && pagination.totalPage - ( pagination.pageNo - 2 ) gt 4 >	
		<#assign begin = pagination.pageNo - 2>
	    <#assign end = (pagination.pageNo-2)+4  >
		<#list begin..end as x>
			<#if pagination.pageNo == x >
				<span class="currentPage">${x}</span>
			<#else>
				<a href="javascript: $.pageSkip(${x });">${x}</a>
			</#if>
		</#list>
	<#else>
		<#if  pagination.totalPage gt 5 &&  pagination.pageNo gt 3>
			<#assign begin1 = pagination.totalPage - 4>
	    	<#assign end1 = pagination.totalPage >
	    	<#list begin1..end1 as x>
				<#if pagination.pageNo == x >
					<span class="currentPage">${x}</span>
				<#else>
					<a href="javascript: $.pageSkip(${x });">${x}</a>
				</#if>
			</#list>
		<#else>
			<#if pagination.totalPage gt 5 >
				<#assign end2 = 5>
				<#list 1..end2 as x>
					<#if pagination.pageNo == x >
						<span class="currentPage">${x}</span>
					<#else>
						<a href="javascript: $.pageSkip(${x });">${x}</a>
					</#if>
				</#list>
			<#else>
				<#assign end3 = pagination.totalPage>
				<#list 1..end3 as x>
					<#if pagination.pageNo == x >
						<span class="currentPage">${x}</span>
					<#else>
						<a href="javascript: $.pageSkip(${x });">${x}</a>
					</#if>
				</#list>
			</#if>
		</#if>
	</#if>
	
	<#if pagination.pageNo != pagination.nextPage>
		<a href="javascript: $.pageSkip(${pagination.nextPage});" class="nextPage">&nbsp;</a>
	<#else>
		<span class="nextPage">&nbsp;</span>
	</#if>
	<#if pagination.totalPage != pagination.pageNo>
		<a href="javascript: $.pageSkip(${pagination.totalPage});" class="lastPage">&nbsp;</a>
	<#else>
		<span class="lastPage">&nbsp;</span>	
	</#if>
	<span class="pageSkip">
			共${pagination.totalPage}页 到第<input onpaste="return false;" maxlength="9" value="${pagination.pageNo}" name="pageNo" id="pageNumber">页<button type="submit">&nbsp;</button>
	</span>
	
</#if> 
</div>              
</#if>